package com.yc.web.clients;

import com.yc.config.FeignConfig;
import com.yc.web.controller.model.ResponseResult;
import org.junit.runners.Parameterized;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "oss-storage", configuration = FeignConfig.class)
public interface OSSClient {
    @PostMapping(value = "/api/oss/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    public ResponseResult uploadFile(@RequestPart("files") MultipartFile[] files);
}
